/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.strategy;

import java.math.BigDecimal;

/**
 *
 * @author xiay
 * @since 2020/12/15 9:35 下午
 */
public class OldCustomerCalculatePriceService implements CalculatePriceService {

    @Override
    public BigDecimal getTruePrice(BigDecimal originalPrice) {
        System.out.println("老用户，打九折");
        return originalPrice.multiply(BigDecimal.valueOf(0.9));
    }
}
